package com.tiancheng.trade.order.vo.admin;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.apache.commons.lang3.StringUtils;

import java.time.LocalDate;

/**
 * @Auther: ld
 * @Date: 2024/2/28 16:57
 * @Param ${tags}
 * @Description:
 */
@Setter
@Getter
@ToString
public class QuerySubOrderVO {

    private Long id;
    /**
     * 主订单号
     */
    private String orderId;
    /**
     * 子订单号
     */
    private String subOrderId;
    /**
     * 源子订单号
     */
    private String originalSubOrderId;

    /**
     * 业务渠道来源
     */
    private String orderSource;
    /**
     * 商户编码
     */
    private String merchantCode;

    private String merchantName;
    /**
     * 产品编码
     */
    private String productCode;

    /**
     * 产品名称
     */
    private String productName;

    /**
     * 子订单状态
     */
    private String subOrderStatus;

    /**
     * 子订单创建起止日期
     */
    private LocalDate createTimeBegin;

    private LocalDate createTimeEnd;

    /**
     * 核销起止日期
     */
    private LocalDate verificationTimeBegin;

    private LocalDate verificationTimeEnd;

    /**
     * 分页条件
     */
    private Integer currentPage;

    private Integer pageSize;

    private Integer version;

    /**
     * IN：核销中，SC成功，Fl：核销失败
     */
    private String verificationStatus;

    public String getOrderId() {
        if (StringUtils.isNotEmpty(orderId)) {
            orderId = orderId.trim();
        }
        return orderId;
    }

    public String getSubOrderId() {
        if (StringUtils.isNotEmpty(subOrderId)) {
            subOrderId = subOrderId.trim();
        }
        return subOrderId;
    }

    public String getOriginalSubOrderId() {
        if (StringUtils.isNotEmpty(originalSubOrderId)) {
            originalSubOrderId = originalSubOrderId.trim();
        }
        return originalSubOrderId;
    }

    public String getMerchantName() {
        if (StringUtils.isNotEmpty(merchantName)) {
            merchantName = merchantName.trim();
        }
        return merchantName;
    }

    public String getProductName() {
        if (StringUtils.isNotEmpty(productName)) {
            productName = productName.trim();
        }
        return productName;
    }

}
